package com.iteaj.iot.plc.melsec;

import com.iteaj.iot.client.ClientConnectProperties;

public class MelsecConnectProperties extends ClientConnectProperties {


    private  MelsecModel model;

    protected MelsecConnectProperties() {
    }

    public MelsecConnectProperties(String remoteHost, Integer remotePort, MelsecModel model) {
        this(remoteHost, remotePort, null, model);
    }

    public MelsecConnectProperties(String remoteHost, Integer remotePort, String localHost, MelsecModel model) {
        this(remoteHost, remotePort, localHost, null, model);
    }

    public MelsecConnectProperties(String remoteHost, Integer remotePort, String localHost, Integer localPort, MelsecModel model) {
        super(remoteHost, remotePort, localHost, localPort);
        this.setHost(remoteHost);
        this.setLocalHost(localHost);
        this.setModel(model);
    }


    /**
     * 请使用ip地址
     *
     * @param ipAddress
     */
    @Override
    public void setHost(String ipAddress) {
        super.setHost(ipAddress);

    }

    /**
     * 请使用ip地址
     *
     * @param ipAddress
     */
    @Override
    public void setLocalHost(String ipAddress) {
        super.setLocalHost(ipAddress);
    }

    public MelsecModel getModel() {
        return model;
    }

    public void setModel(MelsecModel model) {
        this.model = model;
    }
}
